package com.horsen.service.edu.service.feign;

import com.horsen.common.util.R;
import com.horsen.service.edu.service.feign.fallback.OSSFileServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 调用oss微服务的File控制器
 *
 * @author Horsen
 */
@Service
@FeignClient(value = "service-aliyun", fallback = OSSFileServiceFallback.class)
public interface OSSFileService {
    /**
     * 从阿里云OSS删除文件
     *
     * @param url 文件URL
     * @return 统一返回结果实例
     */
    @PostMapping("/admin/aliyun/oss/")
    R delete(String url);
}
